package zuoye717;

import java.util.ArrayList;
import java.util.Random;

public class Member extends User{
public Member(String username,int money){
	super(username,money);
}
public Member(){
	
}
public void receive(ArrayList<Integer> redList){
	if(redList.isEmpty()){
		return;
	}
	Random r=new Random();
	int num=r.nextInt(redList.size());
	int index=redList.get(num);
	int money=this.getMoney()+index;
	this.setMoney(money);
}



}
